package city.spring.modules.medicine.repository;

import city.spring.modules.medicine.entity.MedicineInventorywarehouseEntity;
import city.spring.modules.medicine.vo.MedicineInventorywarehouseVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：药品盘点入库
 *
 * @author 谢金婷
 * @date 2020-07-16 14:12:55
 */
@Repository
public interface MedicineInventorywarehouseRepository extends BaseMapper<MedicineInventorywarehouseEntity> {
    /**
     * 根据id获取药品盘点入库信息
     *
     * @param id
     * @return
     */
    MedicineInventorywarehouseEntity getById(String id);

    IPage<MedicineInventorywarehouseVO> listPage(Page<? extends MedicineInventorywarehouseEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends MedicineInventorywarehouseEntity> wrapper);
}